
class AddUserIdToInvoices < ActiveRecord::Migration[5.0]
  def change
    add_column :invoices, :user_id, :integer
    add_column :invoices, :is_default, :boolean, default: false
    add_column :invoices, :deleted_at, :datetime

    add_index :invoices, :deleted_at
  end
end
